Skip to content

[Refactor] Pilot shared stream test utilities - #1086

Merged
edelauna merged 1 commit into
mainfrom
refactor/test-utils-pilot-06q4nypl2c73c
Aug 1, 2026
Merged

[Refactor] Pilot shared stream test utilities#1086
edelauna merged 1 commit into
mainfrom
refactor/test-utils-pilot-06q4nypl2c73c

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

  • Added src/test-utils/stream.ts with typed asyncStreamFrom and collectStream helpers for async iterable setup and stream collection in tests.
  • Refactored src/api/providers/__tests__/openai-native.spec.ts to use those helpers for repeated SDK stream mocks and collect-then-assert loops.
  • Updated the ESLint suppressions ledger for the removed explicit-any violation in that spec.

Why this change was made

This is a small pilot for the approved test-utils plan: reduce mechanical duplication in tests without hiding scenario intent or changing production behavior.

Impact

No user-facing behavior change. The pilot gives agents a reusable async-stream test pattern, keeps assertions explicit, and passed the targeted spec, full Zoo-Code test suite, typecheck, and lint.

@zoomote

zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

No code issues found. See task

Reviewed 6dce4d0

@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edelauna
edelauna marked this pull request as ready for review August 1, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR changes are ready and waiting for maintainer re-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants